scala_library(
    name = "decider-utils",
    sources = [
        "DeciderUtils.scala",
        "TopicsMapping.scala",
    ],
    tags = ["bazel-compatible"],
    dependencies = [
        "decider/src/main/scala",
        "unified_user_actions/thrift/src/main/thrift/com/twitter/unified_user_actions:unified_user_actions-scala",
    ],
)

scala_library(
    name = "base",
    sources = [
        "FlagsModule.scala",
        "KafkaProcessorProvider.scala",
        "ZoneFiltering.scala",
    ],
    tags = [
        "bazel-compatible",
        "bazel-only",
    ],
    dependencies = [
        ":decider-utils",
        "3rdparty/jvm/com/google/inject:guice",
        "3rdparty/jvm/javax/inject:javax.inject",
        "3rdparty/jvm/org/apache/kafka:kafka-clients",
        "finatra-internal/kafka/src/main/scala/com/twitter/finatra/kafka/consumers",
        "finatra-internal/mtls-thriftmux/src/main/scala",
        "finatra/inject/inject-app/src/main/java/com/twitter/inject/annotations",
        "finatra/inject/inject-core/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala/com/twitter/inject/modules",
        "finatra/inject/inject-thrift-client/src/main/scala",
        "kafka/finagle-kafka/finatra-kafka/src/main/scala",
        "kafka/libs/src/main/scala/com/twitter/kafka/client/processor",
        "twitter-server/server/src/main/scala",
        "unified_user_actions/adapter/src/main/scala/com/twitter/unified_user_actions/adapter:base",
        "unified_user_actions/kafka/src/main/scala/com/twitter/unified_user_actions/kafka",
        "unified_user_actions/thrift/src/main/thrift/com/twitter/unified_user_actions:unified_user_actions-scala",
        "util/util-core:scala",
        "util/util-core/src/main/scala/com/twitter/conversions",
        "util/util-slf4j-api/src/main/scala",
        "util/util-stats/src/main/scala/com/twitter/finagle/stats",
    ],
)

scala_library(
    name = "tls-favs",
    sources = [
        "FlagsModule.scala",
        "KafkaProcessorProvider.scala",
        "KafkaProcessorTlsFavsModule.scala",
        "ZoneFiltering.scala",
    ],
    tags = ["bazel-compatible"],
    dependencies = [
        ":decider-utils",
        "3rdparty/jvm/com/google/inject:guice",
        "3rdparty/jvm/javax/inject:javax.inject",
        "3rdparty/jvm/org/apache/kafka:kafka-clients",
        "finatra-internal/kafka/src/main/scala/com/twitter/finatra/kafka/consumers",
        "finatra-internal/mtls-thriftmux/src/main/scala",
        "finatra/inject/inject-app/src/main/java/com/twitter/inject/annotations",
        "finatra/inject/inject-core/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala/com/twitter/inject/modules",
        "finatra/inject/inject-thrift-client/src/main/scala",
        "kafka/finagle-kafka/finatra-kafka/src/main/scala",
        "kafka/libs/src/main/scala/com/twitter/kafka/client/processor",
        "src/thrift/com/twitter/timelineservice/server/internal:thrift-scala",
        "twitter-server/server/src/main/scala",
        "unified_user_actions/adapter/src/main/scala/com/twitter/unified_user_actions/adapter/tls_favs_event",
        "unified_user_actions/kafka/src/main/scala/com/twitter/unified_user_actions/kafka",
        "unified_user_actions/thrift/src/main/thrift/com/twitter/unified_user_actions:unified_user_actions-scala",
        "util/util-core:scala",
        "util/util-core/src/main/scala/com/twitter/conversions",
        "util/util-slf4j-api/src/main/scala",
        "util/util-stats/src/main/scala/com/twitter/finagle/stats",
    ],
)

scala_library(
    name = "client-event",
    sources = [
        "FlagsModule.scala",
        "KafkaProcessorClientEventModule.scala",
        "KafkaProcessorProvider.scala",
        "TopicsMapping.scala",
        "ZoneFiltering.scala",
    ],
    tags = ["bazel-compatible"],
    dependencies = [
        ":decider-utils",
        "3rdparty/jvm/com/google/inject:guice",
        "3rdparty/jvm/javax/inject:javax.inject",
        "3rdparty/jvm/org/apache/kafka:kafka-clients",
        "finatra-internal/kafka/src/main/scala/com/twitter/finatra/kafka/consumers",
        "finatra-internal/mtls-thriftmux/src/main/scala",
        "finatra/inject/inject-app/src/main/java/com/twitter/inject/annotations",
        "finatra/inject/inject-core/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala/com/twitter/inject/modules",
        "finatra/inject/inject-thrift-client/src/main/scala",
        "kafka/finagle-kafka/finatra-kafka/src/main/scala",
        "kafka/libs/src/main/scala/com/twitter/kafka/client/processor",
        "twitter-server/server/src/main/scala",
        "unified_user_actions/adapter/src/main/scala/com/twitter/unified_user_actions/adapter/client_event",
        "unified_user_actions/kafka/src/main/scala/com/twitter/unified_user_actions/kafka",
        "unified_user_actions/thrift/src/main/thrift/com/twitter/unified_user_actions:unified_user_actions-scala",
        "util/util-core:scala",
        "util/util-core/src/main/scala/com/twitter/conversions",
        "util/util-slf4j-api/src/main/scala",
        "util/util-stats/src/main/scala/com/twitter/finagle/stats",
    ],
)


scala_library(
    name = "tweetypie-event",
    sources = [
        "FlagsModule.scala",
        "KafkaProcessorProvider.scala",
        "KafkaProcessorTweetypieEventModule.scala",
        "ZoneFiltering.scala",
    ],
    tags = ["bazel-compatible"],
    dependencies = [
        ":decider-utils",
        "3rdparty/jvm/com/google/inject:guice",
        "3rdparty/jvm/javax/inject:javax.inject",
        "3rdparty/jvm/org/apache/kafka:kafka-clients",
        "finatra-internal/kafka/src/main/scala/com/twitter/finatra/kafka/consumers",
        "finatra-internal/mtls-thriftmux/src/main/scala",
        "finatra/inject/inject-app/src/main/java/com/twitter/inject/annotations",
        "finatra/inject/inject-core/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala/com/twitter/inject/modules",
        "finatra/inject/inject-thrift-client/src/main/scala",
        "kafka/finagle-kafka/finatra-kafka/src/main/scala",
        "kafka/libs/src/main/scala/com/twitter/kafka/client/processor",
        "twitter-server/server/src/main/scala",
        "unified_user_actions/adapter/src/main/scala/com/twitter/unified_user_actions/adapter/tweetypie_event",
        "unified_user_actions/kafka/src/main/scala/com/twitter/unified_user_actions/kafka",
        "unified_user_actions/thrift/src/main/thrift/com/twitter/unified_user_actions:unified_user_actions-scala",
        "util/util-core:scala",
        "util/util-core/src/main/scala/com/twitter/conversions",
        "util/util-slf4j-api/src/main/scala",
        "util/util-stats/src/main/scala/com/twitter/finagle/stats",
    ],
)

scala_library(
    name = "social-graph-event",
    sources = [
        "FlagsModule.scala",
        "KafkaProcessorProvider.scala",
        "KafkaProcessorSocialGraphModule.scala",
        "ZoneFiltering.scala",
    ],
    tags = ["bazel-compatible"],
    dependencies = [
        ":decider-utils",
        "3rdparty/jvm/com/google/inject:guice",
        "3rdparty/jvm/javax/inject:javax.inject",
        "3rdparty/jvm/org/apache/kafka:kafka-clients",
        "finatra-internal/kafka/src/main/scala/com/twitter/finatra/kafka/consumers",
        "finatra-internal/mtls-thriftmux/src/main/scala",
        "finatra/inject/inject-app/src/main/java/com/twitter/inject/annotations",
        "finatra/inject/inject-core/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala/com/twitter/inject/modules",
        "finatra/inject/inject-thrift-client/src/main/scala",
        "kafka/finagle-kafka/finatra-kafka/src/main/scala",
        "kafka/libs/src/main/scala/com/twitter/kafka/client/processor",
        "twitter-server/server/src/main/scala",
        "unified_user_actions/adapter/src/main/scala/com/twitter/unified_user_actions/adapter/social_graph_event",
        "unified_user_actions/kafka/src/main/scala/com/twitter/unified_user_actions/kafka",
        "unified_user_actions/thrift/src/main/thrift/com/twitter/unified_user_actions:unified_user_actions-scala",
        "util/util-core:scala",
        "util/util-core/src/main/scala/com/twitter/conversions",
        "util/util-slf4j-api/src/main/scala",
        "util/util-stats/src/main/scala/com/twitter/finagle/stats",
    ],
)

scala_library(
    name = "email-notification-event",
    sources = [
        "FlagsModule.scala",
        "KafkaProcessorEmailNotificationEventModule.scala",
        "KafkaProcessorProvider.scala",
        "ZoneFiltering.scala",
    ],
    tags = ["bazel-compatible"],
    dependencies = [
        ":decider-utils",
        "3rdparty/jvm/com/google/inject:guice",
        "3rdparty/jvm/javax/inject:javax.inject",
        "3rdparty/jvm/org/apache/kafka:kafka-clients",
        "finatra-internal/kafka/src/main/scala/com/twitter/finatra/kafka/consumers",
        "finatra-internal/mtls-thriftmux/src/main/scala",
        "finatra/inject/inject-app/src/main/java/com/twitter/inject/annotations",
        "finatra/inject/inject-core/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala/com/twitter/inject/modules",
        "finatra/inject/inject-thrift-client/src/main/scala",
        "kafka/finagle-kafka/finatra-kafka/src/main/scala",
        "kafka/libs/src/main/scala/com/twitter/kafka/client/processor",
        "twitter-server/server/src/main/scala",
        "unified_user_actions/adapter/src/main/scala/com/twitter/unified_user_actions/adapter/email_notification_event",
        "unified_user_actions/kafka/src/main/scala/com/twitter/unified_user_actions/kafka",
        "unified_user_actions/thrift/src/main/thrift/com/twitter/unified_user_actions:unified_user_actions-scala",
        "util/util-core:scala",
        "util/util-core/src/main/scala/com/twitter/conversions",
        "util/util-slf4j-api/src/main/scala",
        "util/util-stats/src/main/scala/com/twitter/finagle/stats",
    ],
)

scala_library(
    name = "user-modification-event",
    sources = [
        "FlagsModule.scala",
        "KafkaProcessorProvider.scala",
        "KafkaProcessorUserModificationModule.scala",
        "ZoneFiltering.scala",
    ],
    tags = [
        "bazel-compatible",
        "bazel-only",
    ],
    dependencies = [
        ":decider-utils",
        "3rdparty/jvm/com/google/inject:guice",
        "3rdparty/jvm/javax/inject:javax.inject",
        "3rdparty/jvm/org/apache/kafka:kafka-clients",
        "finatra-internal/kafka/src/main/scala/com/twitter/finatra/kafka/consumers",
        "finatra-internal/mtls-thriftmux/src/main/scala",
        "finatra/inject/inject-app/src/main/java/com/twitter/inject/annotations",
        "finatra/inject/inject-core/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala/com/twitter/inject/modules",
        "finatra/inject/inject-thrift-client/src/main/scala",
        "kafka/finagle-kafka/finatra-kafka/src/main/scala",
        "kafka/libs/src/main/scala/com/twitter/kafka/client/processor",
        "twitter-server/server/src/main/scala",
        "unified_user_actions/adapter/src/main/scala/com/twitter/unified_user_actions/adapter/user_modification_event",
        "unified_user_actions/kafka/src/main/scala/com/twitter/unified_user_actions/kafka",
        "unified_user_actions/thrift/src/main/thrift/com/twitter/unified_user_actions:unified_user_actions-scala",
        "util/util-core:scala",
        "util/util-core/src/main/scala/com/twitter/conversions",
        "util/util-slf4j-api/src/main/scala",
        "util/util-stats/src/main/scala/com/twitter/finagle/stats",
    ],
)

scala_library(
    name = "ads-callback-engagements",
    sources = [
        "FlagsModule.scala",
        "KafkaProcessorAdsCallbackEngagementsModule.scala",
        "KafkaProcessorProvider.scala",
        "ZoneFiltering.scala",
    ],
    tags = [
        "bazel-compatible",
        "bazel-only",
    ],
    dependencies = [
        ":decider-utils",
        "3rdparty/jvm/com/google/inject:guice",
        "3rdparty/jvm/javax/inject:javax.inject",
        "3rdparty/jvm/org/apache/kafka:kafka-clients",
        "finatra-internal/kafka/src/main/scala/com/twitter/finatra/kafka/consumers",
        "finatra-internal/mtls-thriftmux/src/main/scala",
        "finatra/inject/inject-app/src/main/java/com/twitter/inject/annotations",
        "finatra/inject/inject-core/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala/com/twitter/inject/modules",
        "finatra/inject/inject-thrift-client/src/main/scala",
        "kafka/finagle-kafka/finatra-kafka/src/main/scala",
        "kafka/libs/src/main/scala/com/twitter/kafka/client/processor",
        "twitter-server/server/src/main/scala",
        "unified_user_actions/adapter/src/main/scala/com/twitter/unified_user_actions/adapter/ads_callback_engagements",
        "unified_user_actions/kafka/src/main/scala/com/twitter/unified_user_actions/kafka",
        "unified_user_actions/thrift/src/main/thrift/com/twitter/unified_user_actions:unified_user_actions-scala",
        "util/util-core:scala",
        "util/util-core/src/main/scala/com/twitter/conversions",
        "util/util-slf4j-api/src/main/scala",
        "util/util-stats/src/main/scala/com/twitter/finagle/stats",
    ],
)

scala_library(
    name = "favorite-archival-events",
    sources = [
        "FlagsModule.scala",
        "KafkaProcessorFavoriteArchivalEventsModule.scala",
        "KafkaProcessorProvider.scala",
        "ZoneFiltering.scala",
    ],
    tags = ["bazel-compatible"],
    dependencies = [
        ":decider-utils",
        "3rdparty/jvm/com/google/inject:guice",
        "3rdparty/jvm/javax/inject:javax.inject",
        "3rdparty/jvm/org/apache/kafka:kafka-clients",
        "finatra-internal/kafka/src/main/scala/com/twitter/finatra/kafka/consumers",
        "finatra-internal/mtls-thriftmux/src/main/scala",
        "finatra/inject/inject-app/src/main/java/com/twitter/inject/annotations",
        "finatra/inject/inject-core/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala/com/twitter/inject/modules",
        "finatra/inject/inject-thrift-client/src/main/scala",
        "kafka/finagle-kafka/finatra-kafka/src/main/scala",
        "kafka/libs/src/main/scala/com/twitter/kafka/client/processor",
        "src/thrift/com/twitter/timelineservice/server/internal:thrift-scala",
        "twitter-server/server/src/main/scala",
        "unified_user_actions/adapter/src/main/scala/com/twitter/unified_user_actions/adapter/favorite_archival_events",
        "unified_user_actions/kafka/src/main/scala/com/twitter/unified_user_actions/kafka",
        "unified_user_actions/thrift/src/main/thrift/com/twitter/unified_user_actions:unified_user_actions-scala",
        "util/util-core:scala",
        "util/util-core/src/main/scala/com/twitter/conversions",
        "util/util-slf4j-api/src/main/scala",
        "util/util-stats/src/main/scala/com/twitter/finagle/stats",
    ],
)

scala_library(
    name = "retweet-archival-events",
    sources = [
        "FlagsModule.scala",
        "KafkaProcessorProvider.scala",
        "KafkaProcessorRetweetArchivalEventsModule.scala",
        "ZoneFiltering.scala",
    ],
    tags = ["bazel-compatible"],
    dependencies = [
        ":decider-utils",
        "3rdparty/jvm/com/google/inject:guice",
        "3rdparty/jvm/javax/inject:javax.inject",
        "3rdparty/jvm/org/apache/kafka:kafka-clients",
        "finatra-internal/kafka/src/main/scala/com/twitter/finatra/kafka/consumers",
        "finatra-internal/mtls-thriftmux/src/main/scala",
        "finatra/inject/inject-app/src/main/java/com/twitter/inject/annotations",
        "finatra/inject/inject-core/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala/com/twitter/inject/modules",
        "finatra/inject/inject-thrift-client/src/main/scala",
        "kafka/finagle-kafka/finatra-kafka/src/main/scala",
        "kafka/libs/src/main/scala/com/twitter/kafka/client/processor",
        "twitter-server/server/src/main/scala",
        "unified_user_actions/adapter/src/main/scala/com/twitter/unified_user_actions/adapter/retweet_archival_events",
        "unified_user_actions/kafka/src/main/scala/com/twitter/unified_user_actions/kafka",
        "unified_user_actions/thrift/src/main/thrift/com/twitter/unified_user_actions:unified_user_actions-scala",
        "util/util-core:scala",
        "util/util-core/src/main/scala/com/twitter/conversions",
        "util/util-slf4j-api/src/main/scala",
        "util/util-stats/src/main/scala/com/twitter/finagle/stats",
    ],
)

scala_library(
    name = "rekey-uua",
    sources = [
        "FlagsModule.scala",
        "KafkaProcessorProvider.scala",
        "KafkaProcessorRekeyUuaModule.scala",
        "ZoneFiltering.scala",
    ],
    tags = [
        "bazel-compatible",
        "bazel-only",
    ],
    dependencies = [
        ":decider-utils",
        "3rdparty/jvm/com/google/inject:guice",
        "3rdparty/jvm/javax/inject:javax.inject",
        "3rdparty/jvm/org/apache/kafka:kafka-clients",
        "finatra-internal/kafka/src/main/scala/com/twitter/finatra/kafka/consumers",
        "finatra-internal/mtls-thriftmux/src/main/scala",
        "finatra/inject/inject-app/src/main/java/com/twitter/inject/annotations",
        "finatra/inject/inject-core/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala/com/twitter/inject/modules",
        "finatra/inject/inject-thrift-client/src/main/scala",
        "kafka/finagle-kafka/finatra-kafka/src/main/scala",
        "kafka/libs/src/main/scala/com/twitter/kafka/client/processor",
        "twitter-server/server/src/main/scala",
        "unified_user_actions/adapter/src/main/scala/com/twitter/unified_user_actions/adapter/uua_aggregates",
        "unified_user_actions/kafka/src/main/scala/com/twitter/unified_user_actions/kafka",
        "unified_user_actions/thrift/src/main/thrift/com/twitter/unified_user_actions:unified_user_actions-scala",
        "util/util-core:scala",
        "util/util-core/src/main/scala/com/twitter/conversions",
        "util/util-slf4j-api/src/main/scala",
        "util/util-stats/src/main/scala/com/twitter/finagle/stats",
    ],
)

scala_library(
    name = "rekey-uua-iesource",
    sources = [
        "FlagsModule.scala",
        "KafkaProcessorProvider.scala",
        "KafkaProcessorRekeyUuaIesourceModule.scala",
        "ZoneFiltering.scala",
    ],
    tags = [
        "bazel-compatible",
        "bazel-only",
    ],
    dependencies = [
        ":decider-utils",
        "3rdparty/jvm/com/google/inject:guice",
        "3rdparty/jvm/javax/inject:javax.inject",
        "3rdparty/jvm/org/apache/kafka:kafka-clients",
        "finatra-internal/kafka/src/main/scala/com/twitter/finatra/kafka/consumers",
        "finatra-internal/mtls-thriftmux/src/main/scala",
        "finatra/inject/inject-app/src/main/java/com/twitter/inject/annotations",
        "finatra/inject/inject-core/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala/com/twitter/inject/modules",
        "finatra/inject/inject-thrift-client/src/main/scala",
        "kafka/finagle-kafka/finatra-kafka/src/main/scala",
        "kafka/libs/src/main/scala/com/twitter/kafka/client/processor",
        "twitter-server/server/src/main/scala",
        "unified_user_actions/adapter/src/main/scala/com/twitter/unified_user_actions/adapter/uua_aggregates",
        "unified_user_actions/kafka/src/main/scala/com/twitter/unified_user_actions/kafka",
        "unified_user_actions/thrift/src/main/thrift/com/twitter/unified_user_actions:unified_user_actions-scala",
        "util/util-core:scala",
        "util/util-core/src/main/scala/com/twitter/conversions",
        "util/util-slf4j-api/src/main/scala",
        "util/util-stats/src/main/scala/com/twitter/finagle/stats",
    ],
)

scala_library(
    name = "graphql-client",
    sources = [
        "ClientIdModule.scala",
        "GraphqlClientProviderModule.scala",
    ],
    tags = ["bazel-compatible"],
    dependencies = [
        "3rdparty/jvm/com/google/inject:guice",
        "3rdparty/jvm/javax/inject:javax.inject",
        "finagle-internal/mtls/src/main/scala/com/twitter/finagle/mtls/authentication",
        "finagle-internal/mtls/src/main/scala/com/twitter/finagle/mtls/client",
        "finagle/finagle-thriftmux/src/main/scala",
        "finatra/inject/inject-app/src/main/java/com/twitter/inject/annotations",
        "finatra/inject/inject-modules/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala/com/twitter/inject/modules",
        "graphql/thrift/src/main/thrift/com/twitter/graphql:graphql-scala",
        "twitter-server/server/src/main/scala",
    ],
)

scala_library(
    name = "cache",
    sources = [
        "CacheModule.scala",
    ],
    tags = ["bazel-compatible"],
    dependencies = [
        "3rdparty/jvm/com/google/guava",
        "3rdparty/jvm/com/google/inject:guice",
        "3rdparty/jvm/javax/inject:javax.inject",
        "featureswitches/dynmap/src/main/scala/com/twitter/dynmap:dynmap-core",
        "finatra/inject/inject-app/src/main/java/com/twitter/inject/annotations",
        "finatra/inject/inject-modules/src/main/scala",
        "finatra/inject/inject-modules/src/main/scala/com/twitter/inject/modules",
        "graphql/thrift/src/main/thrift/com/twitter/graphql:graphql-scala",
        "twitter-server/server/src/main/scala",
        "unified_user_actions/enricher/src/main/scala/com/twitter/unified_user_actions/enricher/hcache",
        "unified_user_actions/enricher/src/main/thrift/com/twitter/unified_user_actions/enricher/internal:internal-scala",
        "util/util-cache-guava/src/main/scala",
        "util/util-cache/src/main/scala",
    ],
)
